package jihe;

public class Book {
    private int Id;    //图书编号
    private String Name;    //图书名称
    private int Price;    //图书价格
    public Book(int id,String name,int price)
    {    //构造方法
        this.Id=id;
        this.Name=name;
        this.Price=price;
    }
    public String toString()
    {    //重写 toString()方法
        return this.Id+", "+this.Name+"，"+this.Price;
    }
}
